package com.log.enhance.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 开启日志来源追踪配置
 *
 * @author Mr_wenpan@163.com 2021/06/03 14:56
 */
@Data
@ConfigurationProperties(prefix = "plugin.log.trace.enable")
public class EnableFromAndToProperty {

    public final static String LOG_TRACE_PREFIX = "plugin.log.trace.enable";

    Boolean enableLogSource;

    /**
     * 如果用户不在配置文件中显示开启打印日志的from和to，则默认不打印
     */
    public EnableFromAndToProperty(){
        enableLogSource = false;
    }
}
